package auth.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

import auth.service.impl.CouponServiceFeignClientFallback;
import common.model.result.Result;


@Service
@FeignClient(name = "coupon-server",fallback = CouponServiceFeignClientFallback.class)
public interface CouponServiceFeignClient {
    //根据用户id获取该用户所有的优惠券
    @GetMapping("/coupon/couponList")
    Result getCouponList(@RequestHeader("uid") Long uid);
}
